﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shop.Model.Dto.Orders
{
    /// <summary>
    /// 创建订单
    /// </summary>
    public class OrderAddDto
    {
        /// <summary>
        /// 商品信息
        /// </summary>
        public List<OrderGoodsAddDto> Goods { get; set; }
        /// <summary>
        /// 收货地址ID
        /// </summary>
        public long AddressId { get; set; }
        /// <summary>
        /// 买家备注
        /// </summary>
        public string? Note { get; set; }
    }


    /// <summary>
    /// 商品信息
    /// </summary>
    public class OrderGoodsAddDto
    { 
        /// <summary>
        /// 购物车Id
        /// </summary>
        public long? CartId { get; set; }
        /// <summary>
        /// 商品Id
        /// </summary>
        public long GoodsId { get; set; }

        /// <summary>
        /// 商品规格Id
        /// </summary>
        public long GoodsSpecId { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int GoodsNum { get; set; }
    }
}
